package com.example.webdemo.dao;

import com.example.webdemo.bean.product;
import java.util.List;
import java.util.Optional;

public interface ProductDao {
    int save(product product);
    int update(product product);
    int delete(int id);
    Optional<product> findById(int id);
    List<product> findAll();
    List<product> searchProducts(String name, String category, Integer status);
}
